<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
ob_start();
include 'connection/connection_logout.php';
$s='insert into loglogin (logDate,logTime,iUser,iMode) value(date(now()),time(now()),'.$_SESSION['iduser'].',1)';
mysql_query($s,$connection_logout);
mysql_close($connection_logout);
session_unregister("iduser");
session_unregister("usname");
session_unregister("role");
if(isset($_REQUEST['changepage'])){
	header('Location: index.php');
}else{
	?>
	<a  onclick="onclickLogin('view');"  style="cursor: pointer"><input class="csslogin" type="button"/> </a>
	<?php 
}?>
